package cn.com.gof.create.builder;

/**
 * <p>Title: SxtAirShipDirector</p>  
 * <p>Description: </p>  
 * @author WangJun
 * @date 2018年9月6日 上午11:14:08
 */
public class SxtAirShipDirector implements AirShipDirector {
	private AirShipBuilder airShipBuilder;
	
	public SxtAirShipDirector(AirShipBuilder airShipBuilder) {
		this.airShipBuilder = airShipBuilder;
	}
	@Override
	public AirShip AirShipDirect() {
		Engine engine = airShipBuilder.builderEngine();
		EscapeTower escapeTower = airShipBuilder.builderEscapeTower();
		OrbitModel orbitModel = airShipBuilder.builderOrbitModel();
		AirShip airShip = new AirShip();
		airShip.setEngine(engine);
		airShip.setOrbitModel(orbitModel);
		airShip.setEscapeTower(escapeTower);
		return airShip;
	}

}
